Whats the difference between alloca(n) and char x[n]?

Posted by Jared P on Stack Overflow See other posts from Stack Overflow or by Jared P
Published on 2010-04-10T19:02:39Z Indexed on 2010/04/10 19:03 UTC
Read the original article Hit count: 165

Filed under:
|
|
|

What is the difference between

void *bytes = alloca(size);

and

char bytes[size];  //Or to be more precise, char x[size]; void *bytes = x;

thanks

© Stack Overflow or respective owner

Related posts about c

    Related posts about objective-c